package com.fan.txl.data.pay;

import android.databinding.BaseObservable;
import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by jiajiabao on 17-2-23.
 */

public class WxPayOrder extends BaseObservable implements Parcelable {
    @JSONField(name = "appid")
    private String appId;
    @JSONField(name = "partnerid")
    private String partnerId;
    @JSONField(name = "prepayid")
    private String prepayId;
    @JSONField(name = "noncestr")
    private String nonceStr;
    @JSONField(name = "sign")
    private String sign;
    @JSONField(name = "timestamp")
    private String timestamp;
    @JSONField(name = "package")
    private String packageValue;

    public String getPackageValue() {
        return packageValue;
    }

    public void setPackageValue(String packageValue) {
        this.packageValue = packageValue;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    public String getPrepayId() {
        return prepayId;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.appId);
        dest.writeString(this.partnerId);
        dest.writeString(this.prepayId);
        dest.writeString(this.nonceStr);
        dest.writeString(this.sign);
        dest.writeString(this.timestamp);
        dest.writeString(this.packageValue);
    }

    public WxPayOrder() {
    }

    protected WxPayOrder(Parcel in) {
        this.appId = in.readString();
        this.partnerId = in.readString();
        this.prepayId = in.readString();
        this.nonceStr = in.readString();
        this.sign = in.readString();
        this.timestamp = in.readString();
        this.packageValue = in.readString();
    }

    public static final Creator<WxPayOrder> CREATOR = new Creator<WxPayOrder>() {
        @Override
        public WxPayOrder createFromParcel(Parcel source) {
            return new WxPayOrder(source);
        }

        @Override
        public WxPayOrder[] newArray(int size) {
            return new WxPayOrder[size];
        }
    };
}
